<head th:fragment="header" xmlns:th="http://www.springframework.org/schema/mvc">
	<meta charset="utf-8">
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<title>生产管理系统</title>
	<link rel="icon" type="image/x-icon" th:href="@{/img/favicon.ico}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap/css/bootstrap.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/font-awesome/css/font-awesome.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/Ionicons/css/ionicons.min.css}">
	<link rel="stylesheet" th:href="@{/adminLTE/css/AdminLTE.min.css}">
	<link rel="stylesheet" th:href="@{/adminLTE/css/skins/_all-skins.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrapValidator/bootstrapValidator.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap-table/bootstrap-table.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css}">
	<link rel="stylesheet" th:href="@{/plugin/handsontable/handsontable.full.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap-datepicker/css/bootstrap-datepicker.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/toastr/toastr.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/cropper/cropper.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/autocomplete/jquery.autocomplete.css}">
	<link rel="stylesheet" th:href="@{/plugin/handsontable/handsontable.full.css}">
	<link rel="stylesheet" th:href="@{/plugin/select2/css/select2.css}">
	<link rel="stylesheet" th:href="@{/plugin/zTree_v3/css/metroStyle/metroStyle.css}">
	<link rel="stylesheet" th:href="@{/plugin/bootstrap-select/css/bootstrap-select.min.css}">
	<link rel="stylesheet" th:href="@{/plugin/summernote/summernote.css}"/>
	<link rel="stylesheet" th:href="@{/plugin/summernote/summernote-bs3.css}"/>
	<link rel="stylesheet" th:href="@{/css/css.css}">
	<link rel="stylesheet" th:href="@{/plugin/fullcalendar/fullcalendar.css}">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>

<div th:fragment="footer">
	<div class="modal fade" data-backdrop="static" data-keyboard="false" id="modal-alert360">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title">提示</h4>
				</div>
				<div class="modal-body">
					<p>此页面需要在极速模式下显示，请参考如下方式切换极速模式</p>
					<br>
					<br>
					<img th:src="@{/img/alert360.png}" alt="" width="100%">
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-success" data-dismiss="modal" id="btn-alert360">关闭网页</button>
				</div>
			</div>
		</div>
	</div>

	<script th:src="@{/plugin/jquery/jquery.min.js}"></script>
	<script th:src="@{/plugin/bootstrap/js/bootstrap.min.js}"></script>
	<script th:src="@{/adminLTE/js/adminlte.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/bootstrap-table.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/extensions/export/bootstrap-table-export.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/extensions/export/tableExport.js}"></script>
	<script th:src="@{/plugin/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js}"></script>
	<!--<script th:src="@{/plugin/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.min.js}"></script>-->
	<script th:src="@{/plugin/bootstrap-treetable/bootstrap-treetable.js}"></script>
	<script th:src="@{/plugin/bootstrap-datepicker/js/bootstrap-datepicker.js}"></script>
	<script th:src="@{/plugin/bootstrapValidator/bootstrapValidator.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-typeahead/bootstrap-typeahead.js}"></script>
	<script th:src="@{/plugin/handsontable/handsontable.full.js}"></script>
	<script th:src="@{/plugin/handsontable/languages/zh-CN.js}"></script>
	<script th:src="@{/plugin/bootstrap-select/js/bootstrap-select.min.js}"></script>
	<script th:src="@{/plugin/bootstrap-select/js/defaults-zh_CN.min.js}"></script>
	<!--使div出现滚动条-->
	<script th:src="@{/plugin/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
	<!--遮照层插件-->
	<script th:src="@{/plugin/jquery-blockUI/jquery.blockUI.js}"></script>
	<script th:src="@{/plugin/autocomplete/jquery.autocomplete.js}"></script>
	<script th:src="@{/plugin/zTree_v3/js/jquery.ztree.all.js}"></script>
	<script th:src="@{/plugin/jquery-goup/jquery.goup.min.js}"></script>
	<script th:src="@{/plugin/jquery-fileDownload/jquery.fileDownload.js}"></script>
	<script th:src="@{/plugin/fastclick/lib/fastclick.js}"></script>
	<script th:src="@{/plugin/chart.js/Chart.js}"></script>
	<script th:src="@{/plugin/toastr/toastr.min.js}"></script>
	<script th:src="@{/plugin/bootbox/bootbox.min.js}"></script>
	<script th:src="@{/plugin/underscore/underscore.js}"></script>
	<script th:src="@{/plugin/cropper/cropper.min.js}"></script>
	<script th:src="@{/plugin/select2/js/select2.full.js}"></script>
	<script th:src="@{/plugin/qrcode/jquery.qrcode.js}"></script>
	<script th:src="@{/plugin/echarts/echarts.min.js}"></script>
	<script th:src="@{/plugin/Print/Print.js}"></script>
	<script th:src="@{/plugin/pdf/pdf.js}"></script>
	<script th:src="@{/plugin/summernote/summernote.min.js}"></script>
	<script th:src="@{/plugin/summernote/summernote-zh-CN.js}"></script>
	<script th:src="@{/plugin/Print/Print.js}"></script>
	<script th:src="@{/js/jquery.PrintArea.js}"></script>
	<script th:src="@{/plugin/fullcalendar/fullcalendar.min.js}"></script>
	<script th:src="@{/plugin/fullcalendar/locale/zh-cn.js}"></script>
	<script th:src="@{/js/sgl.js}"></script>
	<script th:src="@{/js/xyh.js}"></script>
<!--	<script th:src="@{/plugin/calcEval/CalcEval.js}"></script>-->
	<script th:inline="javascript">

		var ctx = /*[[@{/}]]*/ '';
		var permissions = [[${session.permissions}]];
		var sessionUser = [[${session.user}]];
		var sessionRoles = [[${session.roles}]];

		function hasP(p) {
			if($.inArray('*:*:*', permissions) > -1 || $.inArray(p, permissions) > -1){
				return true;
			}
			/*for (var i = 0; i < arguments.length; i++) {
                if ($.inArray(arguments[i], permissions) > -1) {
                    return true;
                }
            }*/
		}
		function hasR(r) {
			if($.inArray('admin', sessionRoles) > -1 || $.inArray(r, sessionRoles) > -1){
				return true;
			}
		}

	</script>
</div>

